﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Brjostagjof.Models.ImageViewModel>" %>

        <div>   
            <label for="child_name">Nafn:</label>
            <div class="demo">
                <%: Html.TextBoxFor(model => model.child.Name) %>
                <%: Html.ValidationMessageFor(model => model.child.Name) %>
            </div>
        </div>
        <div>
            <label for="child_dateofbirth">Fæðingardagur:</label><br />
            <div class="demo">
            <%: Html.TextBoxFor(model => model.child.Dateofbirth, new { @id = "datepicker" })%>
            <%: Html.ValidationMessageFor(model => model.child.Dateofbirth) %>
            </div>
        </div>         
<p>
    <input type="submit" value="Samþykkja" />
</p>

       <script type ="text/javascript">
           $(function () {
               $("#datepicker").datepicker({ dateFormat: 'dd/mm/yy' });
           });
	    </script>